package com.essc.utils;

import com.essc.pojo.Goods;
import com.essc.pojo.Order;
import com.essc.pojo.User;

public class OrderResult {
    private Integer oid;
    //商品信息
    private Goods good;
    //买家用户信息
    private User buyer;
    //卖家用户信息
    private User seller;
    //订单信息
    private Order orderIf;

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Goods getGood() {
        return good;
    }

    public void setGood(Goods good) {
        this.good =good;
    }

    public User getBuyer() {
        return buyer;
    }

    public void setBuyer(User buyer) {
        this.buyer = buyer;
    }

    public User getSeller() {
        return seller;
    }

    public void setSeller(User seller) {
        this.seller = seller;
    }

    public OrderResult(){}

    //去支付页面所需的商品、用户信息
    public OrderResult(Integer oid, Goods good, User buyer, User seller){
        this.oid = oid;
        this.good = good;
        this.buyer = buyer;
        this.seller = seller;
    }

    public OrderResult(Integer oid, Goods good, User buyer, User seller,Order orderIf){
        this.oid = oid;
        this.good = good;
        this.buyer = buyer;
        this.seller = seller;
        this.orderIf = orderIf;
    }

    @Override
    public String toString() {
        return "OrderResult{" +
                "oid=" + oid +
                ", good=" + good +
                ", buyer=" + buyer +
                ", seller=" + seller +
                ", orderIf=" + orderIf +
                '}';
    }
}
